import { createStore } from 'vuex'
import user from '@/store/modules/user'
import cart from '@/store/modules/cart'

export default createStore({
  state: {},
  getters: {
    token(state) {
      return state.user.userInfo.token
    }
  },
  mutations: {},
  actions: {},
  modules: {
    user,
    cart
  }
})
